package com.shaoxi.risk.ext.mc;

import com.shaoxi.ext.framework.anotation.Ext;
import com.shaoxi.risk.ext.sdk.PromotionFilterExt;
import com.shaoxi.risk.ext.sdk.PromotionPram;
import org.springframework.stereotype.Component;

@Component
@Ext(suportBizCode = "mc")
public class McPromotionFilterExt implements PromotionFilterExt {
    @Override
    public boolean isFilter(PromotionPram promotionPram) {
        // 猫超低于1元的优惠不计算
        return promotionPram.getAmount()<10L;
    }
}
